<template>
  <el-table
      class="table"
      :data="tableData"
      stripe
      style="width: 100%">
    <el-table-column
        prop="address"
        label="选择"
        width="50">
      <template slot-scope="scope">
        <el-radio v-model="radioSelect"
                  :label="scope.row.id"
                  @change.native="handleRadioChange(scope.row.id)"
        >&nbsp;
        </el-radio>
      </template>
    </el-table-column>
    <el-table-column
        prop="name"
        label="司机姓名"
        width="200">
    </el-table-column>
    <el-table-column
        prop="time"
        label="手机号"
        width="200">
    </el-table-column>
    <el-table-column
        prop="time"
        label="驾驶证号"
        width="200">
    </el-table-column>
    <el-table-column
        prop="address"
        label="车牌号"
        width="200">
    </el-table-column>
    <el-table-column
        prop="address"
        label="系统登录账号"
        width="200">
    </el-table-column>
    <el-table-column
        prop="address"
        label="登录密码"
        width="200">
    </el-table-column>
    <el-table-column
        prop="address"
        label="创建时间"
        width="200">
    </el-table-column>
    <el-table-column
        prop="address"
        label="状态"
        width="160">
    </el-table-column>

  </el-table>
</template>

<script>
export default {
  name: "DriversAccount",
  props:{
    tableData: [],
    identity: String,
  },
  data(){
    return{
      radioSelect: '1',
    }
  },
  methods:{


    // 选择单选框
    handleRadioChange(row) {
      console.log(row)
    },
  }
}
</script>

<style scoped>

</style>